#ifndef LEDDIALOG_H
#define LEDDIALOG_H

#include <QDialog>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
namespace Ui {
    class LedDialog;
}

class LedDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LedDialog(QWidget *parent = 0);
    ~LedDialog();
    int webget(const char* url,char* result);

private slots:
    //void on_pushButton_o1_clicked();
    void httpFinished_1();

    void on_pushButton_led1on_clicked();

    void on_pushButton_led1off_clicked();

    void on_pushButton_led2on_clicked();

    void on_pushButton_led2off_clicked();

    void on_pushButton_led3on_clicked();

    void on_pushButton_led3off_clicked();

    void on_pushButton_led4on_clicked();

    void on_pushButton_led4off_clicked();

private:
    Ui::LedDialog *ui;

    QNetworkAccessManager *manager;
    QNetworkReply *reply;
};

#endif // LEDDIALOG_H
